/**
 * @Author：JIAMIN_TANG
 * @Description:
 * @CreateTime：2025/9/20 18:03
 */

class Base1{
    public Base1(String s){
        System.out.println("B");
    }
}

public class Derived extends Base1 {
    public Derived(String s){
        super(s);//这里需要显式调用父类构造方法
        System.out.println("D");
    }

    public static void main(String[] args) {
        new Derived("C");
    }
}
